import os


f = open('E:\\1.txt')
o = open('E:\\2.txt', 'w+')
for line in f:
    line = line.strip('\n')
    line = "'" + line.replace(os.linesep,"") + "')," + os.linesep

    # print(line)
    new_line = line.split(":")[0]+"':(None,'"+ line.split(":")[1]
    o.write(new_line)
    print(new_line)



import os


f = open('E:\\3.txt')
o = open('E:\\4.txt', 'w+')

for line in f.readlines():
    data = line.strip()
    if len(data) != 0:
        if "--15aa7149ba6a4630acc2235d86263735" in line:
            continue
        o.write(line)



import os


f = open('E:\\3.txt')
o = open('E:\\4.txt', 'w+')
for line in f:
    line = line.strip('\n')
    # line = "'" + line.replace(os.linesep,"") + "')," + os.linesep

    # print(line)
    # new_line = line.split("=")[0]+"':(None,'"+ line.split(":")[1]
    if "Content-Disposition" in line:
        line = line.split("=")[1]
    o.write(line)
    print(line)